package com.erp.domain;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import com.erp.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * @Author cuicui
 * @Description
 * @Date 2025-9-2
 */
@Data
@HeadRowHeight(20) // 指定列头行高
@ColumnWidth(20) // 指定列宽
public class ErpWarehouse extends BaseEntity {
    @ExcelIgnore
    private int warehouseId;
    // @Excel(name = "单位编码")
    @ExcelProperty(value = "仓库名称")
    private String warehouseName;
    @ExcelProperty(value = "仓库专员")
    private int staffId;
    @ExcelProperty(value = "联系电话")
    private String contactPhone;
    @ExcelProperty(value = "地址")
    private String address;
    @ExcelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createdAt;
    @ExcelProperty(value = "是否启用")
    private int isActive;

    @Override
    public String toString() {
        return "ErpWarehouse{" + "warehouseId=" + warehouseId + ", warehouseName='" + warehouseName + '\'' + ", staffId=" + staffId + ", contactPhone='" + contactPhone + '\'' + ", address='" + address + '\'' + ", createdAt=" + createdAt + ", isActive=" + isActive + '}';
    }
}
